package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 老人信息对象 old_man
 * 
 * @author 王帅
 * @date 2024-08-24
 */
public class OldMan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 老人姓名 */
    @Excel(name = "老人姓名")
    private String name;

    /** 老人年龄 */
    @Excel(name = "老人年龄")
    private Long age;

    /** 老人性别（0：女，1：男） */
    @Excel(name = "老人性别", readConverterExp = "0=：女，1：男")
    private String sex;

    /** 老人电话 */
    @Excel(name = "老人电话")
    private String phone;

    /** 房间号 */
    @Excel(name = "房间号")
    private String roomNumber;

    /** 登记家属 */
    @Excel(name = "登记家属")
    private String belongFamily;

    /** 家属电话 */
    @Excel(name = "家属电话")
    private String famliyPhone;

    /** 房间id */
    private Long roomId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }

    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setRoomNumber(String roomNumber) 
    {
        this.roomNumber = roomNumber;
    }

    public String getRoomNumber() 
    {
        return roomNumber;
    }

    public void setBelongFamily(String belongFamily) 
    {
        this.belongFamily = belongFamily;
    }

    public String getBelongFamily() 
    {
        return belongFamily;
    }

    public void setFamliyPhone(String famliyPhone) 
    {
        this.famliyPhone = famliyPhone;
    }

    public String getFamliyPhone() 
    {
        return famliyPhone;
    }

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("age", getAge())
            .append("sex", getSex())
            .append("phone", getPhone())
            .append("roomNumber", getRoomNumber())
            .append("belongFamily", getBelongFamily())
            .append("famliyPhone", getFamliyPhone())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("roomId", getRoomId())
            .toString();
    }
}
